package czh.cocoa.foundation;

public class NSRange extends NSObject {

	public int location;
	
	public int length;
	
	public NSRange(int location, int length) {
		this.location = location;
		this.length = length;
	}
	
	public NSRange(NSRange range) {
		this.location = range.location;
		this.length = range.length;
	}
	
	public boolean isEqual(NSObject o) {
		if (o instanceof NSRange) {
			NSRange other = (NSRange) o;
			return location == other.location && length == other.length;
		}
		return false;
	}
	
}
